﻿// <copyright file="BookDetail.cs" company="Microsoft Corporation">
// Copyright (c) 2008 All Right Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-03-03</date>
// <summary>Book details</summary>

namespace NYTimes.Data
{
    using System;

    /// <summary>
    /// Book details
    /// </summary>
    public class BookDetail
    {
        /// <summary>
        /// Gets or sets the Title
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets the description
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Gets or sets the contributor
        /// </summary>
        public string Contributor { get; set; }

        /// <summary>
        /// Gets or sets the author
        /// </summary>
        public string Author { get; set; }

        /// <summary>
        /// Gets or sets the contributor note
        /// </summary>
        public string ContributorNote { get; set; }

        /// <summary>
        /// Gets or sets the price
        /// </summary>
        public double Price { get; set; }

        /// <summary>
        /// Gets or sets the age group
        /// </summary>
        public string AgeGroup { get; set; }

        /// <summary>
        /// Gets or sets the publisher
        /// </summary>
        public string Publisher { get; set; }

        /// <summary>
        /// Outputs the book detail properties
        /// </summary>
        /// <returns>a string with named value pairs</returns>
        public override string ToString()
        {
            return Synergist.Utility.GetProperties(this);
        }
    }
}
